public class Main {
    /**
     * 测试数据
     * (0|1)*011(0|1)*
     */
    public static void main(String[] args) {
        //正规式转NFA
        NFAGraph nfaGraph = RegexToNFA.regex_NFA_method();
        //NFA转DFA
        DFAGraph dfaGraph = NFA_To_DFA.NFAGraph_To_DFAGraph(nfaGraph);
        //DFA最小化
        DFAGraph minDfaGraph = MinDFA.DFA_minimize(dfaGraph);
        System.out.println("------------------------------------以下是最小化的DFA--------------------------------------");
        Global.printGraph(minDfaGraph);
    }
}
